package WinterFlower;

/**
 * @author ZJM
 * @version 1.0
 * @since 2022-07-14 18:58:14
 */
public class Item {
    private String name;

    public Item() {
    }

    public Item(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void finalize() throws Throwable {
        System.out.println(this.name+"临终的行为：释放一些自己占用的资源或者 我的宝藏在后面");
    }
}
